﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;

namespace QuanLySuKien
{
    public class Connect
    {
        public SqlConnection con;
        public void connect()
        {
            con = new SqlConnection("Server=192.168.1.100;user id=sa;password=123456;database=quanlysukien");
            try
            {
                con.Open();
            }
            catch
            {
                
            }
        }
        public void disconnect()
        {
            con.Close();
            con.Dispose();
            con = null;
        }

    }
}